package it.webrules.deploymanager.core.st.scm;


public class LogEntryChangedPath {

	public char type;
	public String path;
	public String fromcopypath;
	public long fromrevision;

	public LogEntryChangedPath() {
	}

	public LogEntryChangedPath(char type, String path) {
		this.type = type;
		this.path = path;
	}

	public LogEntryChangedPath(char type, String path, String fromcopypath, long fromrevision) {
		this(type, path);
		this.fromcopypath = fromcopypath;
		this.fromrevision = fromrevision;
	}

	@Override
	public String toString() {
		return " " + type + " " + path + ((fromcopypath != null) ? " (from " + fromcopypath + " revision " + fromrevision + ")" : "");
	}

}
